package com.appbee.gdata.picasa.client;

import javax.inject.Singleton;

import com.appbee.gdata.picasa.client.activity.PicasaAlbumActivity;
import com.appbee.gdata.picasa.client.activity.PicasaPhotoActivity;
import com.appbee.gdata.picasa.client.activity.PicasaPhotoShowActivity;
import com.appbee.gdata.picasa.client.activity.PicasaPhotosActivity;
import com.appbee.gdata.picasa.client.text.PicasaStrings;
import com.appbee.gdata.picasa.client.ui.AlbumView;
import com.appbee.gdata.picasa.client.ui.PhotoView;
import com.appbee.gdata.picasa.client.ui.PhotosView;
import com.appbee.gdata.picasa.client.ui.PicasaMediaHtmlTemplate;
import com.appbee.gdata.picasa.client.ui.PicasaPhotoShowView;
import com.appbee.gdata.picasa.shared.PicasaRequestFactory;
import com.google.gwt.inject.client.AbstractGinModule;

public class PicasaGinModul extends AbstractGinModule
{

	@Override
	protected void configure()
	{
		bind(PicasaStrings.class).in(Singleton.class);
		bind(PicasaRequestFactory.class).toProvider(
				PicasaRequestFactoryProvider.class).in(Singleton.class);
		bind(PicasaMediaHtmlTemplate.class).in(Singleton.class);
		bind(PicasaAlbumActivity.View.class).to(AlbumView.class).in(
				Singleton.class);
		bind(PicasaPhotosActivity.View.class).to(PhotosView.class).in(
				Singleton.class);
		bind(PicasaPhotoActivity.View.class).to(PhotoView.class).in(
				Singleton.class);
		bind(PicasaPhotoShowActivity.View.class).to(PicasaPhotoShowView.class);
	}

}
